/* 科技风主题全局样式 */

:root {
    /* 科技风色彩变量 */
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
    --neon-pink: #f472b6;
    --neon-green: #10b981;
    --dark-bg: #0a0a0f;
    --dark-surface: #1a1a2e;
    --dark-card: #16213e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --tech-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --cyber-gradient: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #f472b6 100%);
    --dark-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 浩瀚星辰背景 - 通用组件 */
.starfield-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, #0f0f23 0%, #050505 100%);
    overflow: hidden;
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-repeat: repeat;
    animation: stars-drift 120s linear infinite;
}

.stars-small {
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.9), transparent);
    background-size: 200px 100px;
    animation-duration: 200s;
}

.stars-medium {
    background-image:
        radial-gradient(2px 2px at 30px 50px, rgba(0, 212, 255, 0.8), transparent),
        radial-gradient(2px 2px at 80px 20px, rgba(139, 92, 246, 0.7), transparent),
        radial-gradient(1px 1px at 120px 90px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 170px 60px, rgba(0, 212, 255, 0.6), transparent);
    background-size: 300px 150px;
    animation-duration: 150s;
}

.stars-large {
    background-image:
        radial-gradient(3px 3px at 50px 80px, rgba(0, 212, 255, 1), transparent),
        radial-gradient(4px 4px at 150px 40px, rgba(139, 92, 246, 0.8), transparent),
        radial-gradient(3px 3px at 250px 120px, rgba(255, 255, 255, 0.9), transparent);
    background-size: 400px 200px;
    animation-duration: 100s;
}

@keyframes stars-drift {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 800px 400px at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at 60% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: nebula-pulse 30s ease-in-out infinite alternate;
}

@keyframes nebula-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 1), transparent);
    border-radius: 50%;
    animation: shooting 8s linear infinite;
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.shooting-star:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.shooting-star:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 7s;
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) scale(0);
        opacity: 0;
    }

    10% {
        transform: translateX(50px) translateY(50px) scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.6);
    }

    70% {
        transform: translateX(300px) translateY(300px) scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.6);
    }

    100% {
        transform: translateX(400px) translateY(400px) scale(0);
        opacity: 0;
    }
}

.cosmic-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(0.5px 0.5px at 10px 20px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(0.5px 0.5px at 30px 60px, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(0.5px 0.5px at 50px 10px, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(0.5px 0.5px at 70px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(0.5px 0.5px at 90px 40px, rgba(0, 212, 255, 0.1), transparent);
    background-size: 100px 100px;
    animation: dust-float 60s linear infinite;
}

@keyframes dust-float {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-100px) translateY(-100px);
    }
}

/* 通用页面容器 */
.tech-page-container {
    min-height: 100vh;
    /* background: var(--dark-gradient); */
    position: relative;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.page-container {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.page-title i {
    margin-right: 15px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 通用动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 科技风卡片 */
.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyber-gradient);
    border-radius: 22px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.tech-card:hover::before {
    opacity: 0.2;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

.card-header-tech {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-header-tech i {
    color: var(--neon-blue);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

/* 科技风按钮 */
.tech-button {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* 搜索表单样式 */
.search-form-tech {
    color: white;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.tech-pagination {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .tech-card {
        margin-bottom: 20px;
    }
}